package com.xmb.wechat.definterface;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * @Author lijiangop
 * @CreateTime 2020/4/14 15:52
 */
public abstract class SimpleTextWatcher implements TextWatcher {
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {
        onTextChangedFinish(s.toString().trim());
    }

    public abstract void onTextChangedFinish(String value);
}
